dofile (getScriptPath() .. "\\..\\processor\\processor.lua")

if not processor.table_notification_ids then


processor.table_notification_ids = {}


function processor:AddTableNotification(t_id)
	SetTableNotificationCallback(t_id, function(t_id, msg, par1, par2)
		processor:PushData("OnTableNotification", {t_id = t_id, msg = msg, par1 = par1, par2 = par2})
	end)
	table.sinsert(self.table_notification_ids, t_id)
end


processor:AddCallback("OnTableNotification")


processor:AddStop(function(t)
	for i, t_id in ipairs(processor.table_notification_ids) do
		SetTableNotificationCallback(t_id, function()end)
		--SetTableNotificationCallback(t_id, nil)
	end
	processor.table_notification_ids = nil
end)


end -- of file
